//package com.it.water.utils.Scoket;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//@Component
//public class ScheduledTasks {
//    @Autowired
//    private MicrophoneService microphoneService;
//
//    @Scheduled(fixedRate = 1000) // 每隔1秒调用一次
//    public void sendMicrophoneData() {
//        microphoneService.startRecordingAndSendToPython();
//    }
//}